package cn.itcast.bos.quartz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import cn.itcast.bos.service.take_delivery.PromotionService;

/**
 * 任务定时器spring task 测试
 */

//@Service
public class TaskDemo {
	@Autowired
	private PromotionService promotionService;

	@Scheduled(cron = "0/5 * * * * ?")
	public void demo() {
		System.out.println(promotionService.taskDemo());
	}
}
